// To parse this JSON data, do
//
//     final welcome = welcomeFromJson(jsonString);

import 'dart:convert';

HotEntity2 welcomeFromJson(dynamic str) => HotEntity2.fromJson(json.decode(str.toString()));

String welcomeToJson(HotEntity2 data) => json.encode(data.toJson());

class HotEntity2 {
  List<Datum>? data;
  int? errorCode;
  String? errorMsg;

  HotEntity2({
    this.data,
    this.errorCode,
    this.errorMsg,
  });

  factory HotEntity2.fromJson(Map<String, dynamic> json) => HotEntity2(
    data: List<Datum>.from(json["data"].map((x) => Datum.fromJson(x))),
    errorCode: json["errorCode"],
    errorMsg: json["errorMsg"],
  );

  Map<String, dynamic> toJson() => {
    "data": List<dynamic>.from(data!.map((x) => x.toJson())),
    "errorCode": errorCode,
    "errorMsg": errorMsg,
  };
}

class Datum {
  int? id;
  String? link;
  String? name;
  int? order;
  int? visible;

  Datum({
    this.id,
    this.link,
    this.name,
    this.order,
    this.visible,
  });

  factory Datum.fromJson(Map<String, dynamic> json) => Datum(
    id: json["id"],
    link: json["link"],
    name: json["name"],
    order: json["order"],
    visible: json["visible"],
  );

  Map<String, dynamic> toJson() => {
    "id": id,
    "link": link,
    "name": name,
    "order": order,
    "visible": visible,
  };
}
